home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- if %1a == a: goto WHATDRIVE
- if %1b == b: goto WHATDRIVE
- if %1 == c: goto START
- if %1 == C: goto START
- if %1 == d: goto START
- if %1 == D: goto START
- if %1 == e: goto START
- if %1 == E: goto START
- if %1 == f: goto START
- if %1 == F: goto START
- goto NOTDRIVE
- :START
- echo
- echo ╔════════════════════════════════════════════════════════════════════════╗
- echo ║ ║
- echo ║ Visual Illustrations, Electronic Computer Book, Installation ║
- echo ║ ║
- echo ║ * This will create a directory called %1\VI on your hard disk ║
- echo ║ and will install the Visual Illustrations book files in that ║
- echo ║ directory. ║
- echo ║ ║
- echo ║ * To run the program, type VI and press ENTER. ║
- echo ║ ║
- echo ║ * If you do not want Visual Illustrations installed at this ║
- echo ║ time, press CTRL + BREAK. ║
- echo ║ ║
- echo ╚════════════════════════════════════════════════════════════════════════╝
- echo
- pause
- cls
- if exist %1\VI\*.* goto EXISTS
- echo Making directory %1\VI . . .
- md %1\VI
- :CHECK
- if exist VI.EXE goto CONTINUE
- echo
- echo Place the disk containing the Visual Illustrations files in the
- echo active drive.
- echo
- pause
- goto CHECK
- :CONTINUE
- echo
- echo Copying Visual Illustrations files . . .
- copy *.* %1\VI
- if not exist %1\VI\VI.EXE goto INSTALLERROR
- if not exist %1\VI\VI.TXT goto INSTALLERROR
- cd %1\VI
- echo
- echo Visual Illustrations is installed on your hard disk. To run it, type VI.
- %1
- echo
- goto DONE
- :WHATDRIVE
- cls
- echo Installation Error: To install Visual Illustrations on your hard
- echo disk, you must include the drive as part of the install command.
- echo For example, to install Visual Illustrations on drive C, type
- echo INSTALL C: and press ENTER.
- goto ERRORQUIT
- :NOTDRIVE
- cls
- echo Installation Error: The hard drive letter can be a letter from C to F,
- echo For example, INSTALL C: will install Visual Illustrations on drive C.
- echo You must include a colon after the drive letter.
- goto ERRORQUIT
- :INSTALLERROR
- cls
- echo Installation Error: Do you have enough space on your hard disk?
- echo Did you give the proper hard drive letter?
- goto ERRORQUIT
- :EXISTS
- cls
- echo Updating directory %1\VI . . .
- goto CHECK
- :ERRORQUIT
- echo
- echo Visual Illustrations was not installed correctly.
- echo
- :DONE
-